package CardEE;

import java.util.List;

public class text {
    public static void main(String[] args){
        CardDemo cardDemo=new CardDemo();
        //买扑克牌；
        List<Card> cardList=cardDemo.buyCard();
        System.out.println(cardList);
        //洗牌操作；
        cardDemo.shuffle(cardList);
        System.out.println("洗牌后的牌面");
        System.out.println(cardList);
        //玩牌操作；
        List<List<Card>> ret=cardDemo.play(cardList);
        for(int i=0;i< ret.size();i++){
            System.out.println("第"+(i+1)+"个人的牌面"+ret.get(i));
        }
        System.out.println("剩下的牌是"+cardList);
    }

}
